import "reflect-metadata"
import { DataSource } from "typeorm"
import { User } from "./entity/User"
import { UserRole } from "./entity/UserRole"
import { SettingSysMenu } from "./entity/SettingSysMenu"
import {Setting} from "./entity/Setting";


export const AppDataSource = new DataSource({
    type: "sqlite",
    database: "../../../../phpdemo/starters/thinkphpv8starter/database.sqlite",
    // database: "database.sqlite",
    synchronize: true,
    logging: true,
    entities: [User,UserRole,SettingSysMenu,Setting],
    migrations: [],
    subscribers: [],
})
